/**
 * 测试网络模块
 */

var netbus = require('../netbus/netbus.js');
var proto_man = require('../netbus/proto_man.js');
var service_manager = require('../netbus/service_manager.js'); //注册
var talk_room = require('./talk_room.js');

//测试启动tcp server
netbus.start_tcp_server('127.0.0.1', 6080,proto_man.PROTO_BUF);
netbus.start_tcp_server('127.0.0.1', 6081,proto_man.PROTO_JSON);
//测试启动websocket server
netbus.start_ws_server('127.0.0.1', 6082,proto_man.PROTO_BUF);
netbus.start_ws_server('127.0.0.1', 6083,proto_man.PROTO_JSON);

//开启聊天室服务
service_manager.register_service(1,talk_room);